package com.youkeyi.ddy.cloud.common.api.application.system.dictionary;

import com.youkeyi.ddy.cloud.common.api.application.system.dictionary.dto.SystemDictionaryListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.dictionary.param.SystemDictionaryCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.dictionary.param.SystemDictionaryDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.dictionary.param.SystemDictionaryListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.dictionary.param.SystemDictionaryUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemDictionaryCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/dictionary/fallback")
public class SystemDictionaryCloudServiceFallback implements SystemDictionaryCloudService {

    @Override
    public SystemDictionaryListCloudDto list(SystemDictionaryListCloudParam param) {
        return new SystemDictionaryListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(SystemDictionaryCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(SystemDictionaryUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemDictionaryDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
